import gdb	
import sys
import time
sys.path.append("/home/stefan/Documents/fydp/fydp-david/module-test/fydp-david/src")
import pyata_module

class AudioBreakPoint(gdb.Breakpoint):

  pitch = 200
  volume = 1
  duration = 0
  channel = ''

  def stop (self):
   # print "target"
   # print  str(gdb.InferiorThread.num)
   # print "self"
   # print  str(self.thread)
    if self.thread == None or self.thread == gdb.selected_thread().num:
      #print "audio break!"
      pyata_module.playSound(self.pitch, self.volume,self.duration,self.channel)
      #print "audio break done!"
    return False
